package com.zoe.app.controller.user;

import com.zoe.app.domain.SysUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zbg
 * @date 2023/05/09
 * @description
 */
@RestController
@Api(tags = "用户")
@RequestMapping("sys/user")
public class UserController {

    @ApiOperation("用户")
    @GetMapping("list")
    public ResponseEntity<SysUser> list() {
        SysUser body = new SysUser();
        body.setId(1);
        body.setName("小明");
        return ResponseEntity.ok(body);
    }
}
